﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class SSConfigers : IEntityTypeConfiguration<SS>
    {
        public void Configure(EntityTypeBuilder<SS> builder)
        {
            builder.ToTable(nameof(SS));
            builder.Property(x => x.StandardId).IsRequired(false).HasMaxLength(30);
            builder.Property(x => x.StandardName).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.Designer).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.Register).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.Checker).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.Changer).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.RegistTime).IsRequired(false);
            builder.Property(x => x.CheckTime).IsRequired(false);
            builder.Property(x => x.ChangeTime).IsRequired(false);
            builder.Property(x => x.SalarySum).IsRequired(false);
            builder.Property(x => x.CheckStatus).IsRequired(false);
            builder.Property(x => x.ChangeStatus).IsRequired(false);
            builder.Property(x => x.CheckComment).IsRequired(false);
            builder.Property(x => x.Remark).IsRequired(false);
        }
    }
}
